/**
 * Copyright 2018 orivil.com. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found at https://mit-license.org.
 */

package n_spider

type Downloader interface {

	// 下载图书信息
	DownloadBook(ptID, ptBookID int, header *Header) (*Book, error)

	// 检测图书是否已完结
	CheckBookFinished(ptID, ptBookID int, header *Header) (finished bool)

	// 下载章节信息
	DownloadChapter(ptID, ptBookID, ptChapter int, header *Header) (c *Chapter, nextPtChapter int, err error)
}
